package com.tc.controller;

import com.tc.dto.Login;
import com.tc.dto.Result;
import com.tc.factory.ResultFactory;
import com.tc.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@Slf4j
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/login")
    public Result login(@RequestBody Login login){
        return loginService.login(login);
    }
}
